<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form class="layui-form" lay-filter="roleForm" id="add_perms_form" action="" style="padding:15px 10px; height: 300px">
    <input type="hidden" ty name="rid">
    <div class="layui-form-item">
        <label class="layui-form-label">客户</label>
        <div class="layui-input-block">
            <select name="cid" id="de_add">
                <option value="">请选择</option>

            </select>
        </div>
    </div>

    <script>
        layui.form.render();
        $.get("http://localhost:8888/customer/search",function(data){
            $.each(data,function(){
                var opt = $("<option></option>").appendTo("#de_add");
                opt.text(this.cName).val(this.cid);
            });
            layui.form.render();
        });
    </script>
</form>
</body>
</html>